package com.happy_lab_management.demo.common.section.controller;

import com.happy_lab_management.demo.common.labType.service.LabTypeService;
import com.happy_lab_management.demo.common.section.service.SectionService;
import com.happy_lab_management.entity.LabType;
import com.happy_lab_management.entity.Section;
import com.happy_lab_management.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/common/section")
public class SectionController {


    @Autowired
    private SectionService sectionService;
    @RequestMapping("/list")
    public Result<List<Section>> list(){
        List<Section> section = sectionService.list();
        return Result.success(section);
    }

}
